package com.sg.dto.biz.calc.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc DeptAchievementDockingDto
 * @使用场景
 */
@Data
public class DeptAchievementDockingDto extends BaseDto implements Serializable {

    /**
     * 关联成果ID
     */
    @ApiModelProperty("关联成果ID")
    private String achievementId;

    /**
     * 成果类型ID
     */
    @ApiModelProperty("成果类型ID")
    private String achievementTypeId;

    /**
     * 成果等级ID
     */
    @ApiModelProperty("成果等级ID")
    private String achievementGradeId;
    /**
     * 成果类型名称
     */
    @ApiModelProperty("成果类型名称")
    private String achievementTypeName;
    /**
     * 成果等级名称
     */
    @ApiModelProperty("成果等级名称")
    private String achievementGradeName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        DeptAchievementDockingDto that = (DeptAchievementDockingDto) o;
        return achievementId == that.achievementId && achievementTypeId == that.achievementTypeId && achievementGradeId == that.achievementGradeId && achievementTypeName == that.achievementTypeName && achievementGradeName == that.achievementGradeName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), achievementId, achievementTypeId, achievementGradeId, achievementTypeName, achievementGradeName);
    }

}
